Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add directory support on CLI #14

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

MatheusRich
Copy link
Contributor

@MatheusRich MatheusRich commented Apr 18, 2020

Now it's possible to pass directories to the CLI. I added a little -h --help option too

end
end
end

raise "You must choose a file to compile" unless filenames.any?
raise "You must choose at least one file to compile" unless targets.any?
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@anykeyh Maybe just printing this phrase is enough. Do you think it really have to be an Exception?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might use the new Log module to raise an Error message and exit the application instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good idea! I'll update it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@anykeyh what do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants